package com.scut.online_black_market.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("product_sellout")
public class ProductSellout {

    @TableId(value = "product_id",type = IdType.AUTO)
    private BigInteger productId;

    private String productName;

    private double productPrice;

    private String productPictureLocation;

    @JsonIgnore
    private int productStatus;

    private String productDescription;

    private LocalDateTime sellTime;

    private String sellmanId;

    private String campus;

    @TableField(exist = false)
    private String pictureUrl;

    @TableField(exist = false)
    private String nickname;
}
